# if etc/nanorc is missing then it's probably an older version
# and need to include all *.nanorc files one by one...

if [ ! -f etc/nanorc ] ; then
	mkdir -p etc
	(
	ls usr/share/nano/*.nanorc 2>/dev/null | \
	while read file ; do
		echo "include /$file"
	done
	) > etc/nanorc
fi

[ -d usr/share/nano/man-html ] && rm -rf usr/share/nano/man-html
